package com.wl.week_01.Homework_01;

/**
 * 图书类 抽象类
 * @author TaiZai
 * @data 2024/9/20 17:27
 */
public abstract class Book {
    private String title;
    private String author;
    private Double price;

    public abstract String getDetails();

    public Book(String title, String author, Double price) {
        this.title = title;
        this.author = author;
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
